package cn.com.bluemoon.daps.sync.core.sync.sql;

import cn.com.bluemoon.daps.model.entity.DapDataModelTable;
import cn.com.bluemoon.daps.model.entity.DapDataModelTableField;
import cn.com.bluemoon.daps.sync.base.BmScript;

/**
 * @author Jarod Kong
 * @date 2021-01-15 23:57
 **/
public interface IFieldSql {

    default BmScript createField(DapDataModelTable newT, DapDataModelTableField newF, String preFieldName) {
        return null;
    }

    default BmScript dropField(DapDataModelTable oldT, DapDataModelTableField oldF) {
        return null;
    }

    default BmScript changeField(DapDataModelTable newT, DapDataModelTableField oldF, DapDataModelTableField newF, String preFieldName) {
        return null;
    }

}
